﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LLKanWebService.Model;
using LLKanWebService.BLL;
public partial class index : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["account"] != null)
            {
                ScoreManager scm = new ScoreManager();
                List<Score> scorelist = scm.findAll();
                string scoreJson = scorelist.ToJson();
                Response.Write(scoreJson);
                
            }
        }
    }
}